package com.hl.service;

import com.hl.mapper.ConsultantLevelMapper;
import com.hl.mapper.ConsultantMapper;
import com.hl.pojo.ConsultantLevel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ConsultantLevelServiceImpl implements ConsultantLevelService {
    @Autowired
    private ConsultantLevelMapper consultantLevelMapper;

    @Override
    public Integer add(ConsultantLevel consultantLevel) {
        return consultantLevelMapper.add(consultantLevel);
    }

    @Override
    public List<ConsultantLevel> findAll() {
        return consultantLevelMapper.findAll();
    }

    @Override
    public Integer del(Integer id) {
        return consultantLevelMapper.del(id);
    }

    @Override
    public ConsultantLevel findById(Integer id) {
        return consultantLevelMapper.findById(id);
    }

    @Override
    public Integer update(ConsultantLevel consultantLevel) {
        return consultantLevelMapper.update(consultantLevel);
    }
}
